/**
 * DataFile.java
 * Version: 1.0
 * Created in 06/08/2013
 * Created by: Gerson Groth
 * 
 * Copyright
 */
package webcrawler.activities.data;

import java.io.Serializable;

import webcrawler.activities.view.utils.Browsers;

/**
 * The Class DataFile.
 * 
 * 
 * 
 * @author Gerson Groth
 */
public class DataFile implements Serializable {

	/** The instance. */
	private static DataFile INSTANCE = new DataFile();

	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = -8895308843996175539L;

	/** The username. */
	private String username;

	/** The password. */
	private String password;
	
	private Browsers browser;

	/**
	 * Instantiates a new data file.
	 */
	public DataFile() {
		this.username = "";
		this.password = "";
	}

	/**
	 * Gets the password.
	 * 
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * Sets the password.
	 * 
	 * @param password
	 *            the new password
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * Gets the single instance of DataFile.
	 * 
	 * @return single instance of DataFile
	 */
	public static DataFile getInstance() {
		return INSTANCE;
	}

	/**
	 * Sets the instance.
	 * 
	 * @param readObject
	 *            the new instance
	 */
	public void setInstance(Object readObject) {
		INSTANCE = (DataFile) readObject;
	}

	/**
	 * Gets the username.
	 * 
	 * @return the username
	 */
	public String getUsername() {
		return username;
	}

	/**
	 * Sets the username.
	 * 
	 * @param username
	 *            the new username
	 */
	public void setUsername(String username) {
		this.username = username;
	}

	public Browsers getBrowser() {
		return browser;
	}

	public void setBrowser(Browsers browser) {
		this.browser = browser;
	}

}
